<form action="#" method="post" id="tbCarrinho">
	<div class="header">
		<p>Carrinho de compras</p>
		<a class="closeCart" href="#">fechar carrinho</a>
	</div>
	
	<div class="body">
		<table>
			<tbody>
			<?php 
			$total = 0;
			if( $this->carItens ):
				foreach( $this->carItens as $key => $pack ):
					$total += $pack['cart']->detail->cost;
				?>
					<tr>
						<td class="top_1"><img height="80" alt="-" src="<?php echo __ROOT__?>public/uploads/cache/tm01-<?php echo $pack['cart']->gallery[0]->file ?>"></td>
						<td class="top_2">
							<p><?php echo $pack['cart']->product->name ?></p>
							<p><?php echo $pack['cart']->colors[ $pack['cart']->detail->idColor ] ?></p>
							<p><?php echo $pack['cart']->sizes[ $pack['size'] ] ?></p>
						</td>
						<td class="top_3 museo"><?php echo number_format($pack['cart']->detail->cost, 2, ',', '') ?></td>
						<td class="btExcluir removeItemCart"><a href="<?php echo __LINKS__?>carrinho/remove/<?php echo $key?>">excluir</a></td>
					</tr> 
				<?php 
				endforeach;
			else:  
			?>
					<tr>
						<td class="noItens museo">Você não adicionou nenhum item no carrinho de compras.</td>
					</tr> 
			<?php 
			endif;
			?>
			</tbody>
		</table>
	</div>

	<div class="total museo">
		<p>Total</p>
		<p>R$ <?php echo number_format($total, 2, ',', '') ?></p>
	</div>

	
	<div class="footer">
		<a href="<?php echo __LINKS__ ?>cadastro">concluir compra</a>
	</div>
</form>


